<?php
	class AppController extends Controller {
		
		var $uses = null;
		var $helpers = array('Session');
	
		/* We want to check that the user is logged in */
		function beforeFilter() {
			if (!($this->Session->read('USER')) && $this->params['action'] != 'login') {
				$this->redirect('/home/login');
				exit();
			} else {
				/* Ok, they are logged in */
			}
		}

	}
